package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JcReferenceAnalysisMapper;
import com.ruoyi.system.domain.JcReferenceAnalysis;
import com.ruoyi.system.service.IJcReferenceAnalysisService;
import com.ruoyi.common.core.text.Convert;

/**
 * 竞彩盘口变化分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-20
 */
@Service
public class JcReferenceAnalysisServiceImpl implements IJcReferenceAnalysisService 
{
    @Autowired
    private JcReferenceAnalysisMapper jcReferenceAnalysisMapper;

    /**
     * 查询竞彩盘口变化分析
     * 
     * @param id 竞彩盘口变化分析主键
     * @return 竞彩盘口变化分析
     */
    @Override
    public JcReferenceAnalysis selectJcReferenceAnalysisById(Long id)
    {
        return jcReferenceAnalysisMapper.selectJcReferenceAnalysisById(id);
    }

    /**
     * 查询竞彩盘口变化分析列表
     * 
     * @param jcReferenceAnalysis 竞彩盘口变化分析
     * @return 竞彩盘口变化分析
     */
    @Override
    public List<JcReferenceAnalysis> selectJcReferenceAnalysisList(JcReferenceAnalysis jcReferenceAnalysis)
    {
        return jcReferenceAnalysisMapper.selectJcReferenceAnalysisList(jcReferenceAnalysis);
    }

    /**
     * 新增竞彩盘口变化分析
     * 
     * @param jcReferenceAnalysis 竞彩盘口变化分析
     * @return 结果
     */
    @Override
    public int insertJcReferenceAnalysis(JcReferenceAnalysis jcReferenceAnalysis)
    {
        return jcReferenceAnalysisMapper.insertJcReferenceAnalysis(jcReferenceAnalysis);
    }

    /**
     * 修改竞彩盘口变化分析
     * 
     * @param jcReferenceAnalysis 竞彩盘口变化分析
     * @return 结果
     */
    @Override
    public int updateJcReferenceAnalysis(JcReferenceAnalysis jcReferenceAnalysis)
    {
        return jcReferenceAnalysisMapper.updateJcReferenceAnalysis(jcReferenceAnalysis);
    }

    /**
     * 批量删除竞彩盘口变化分析
     * 
     * @param ids 需要删除的竞彩盘口变化分析主键
     * @return 结果
     */
    @Override
    public int deleteJcReferenceAnalysisByIds(String ids)
    {
        return jcReferenceAnalysisMapper.deleteJcReferenceAnalysisByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除竞彩盘口变化分析信息
     * 
     * @param id 竞彩盘口变化分析主键
     * @return 结果
     */
    @Override
    public int deleteJcReferenceAnalysisById(Long id)
    {
        return jcReferenceAnalysisMapper.deleteJcReferenceAnalysisById(id);
    }
}
